import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import apiUtil from './utils/apiUtil'
import utils from './utils/utils'
import TreeTable from 'vue-table-with-tree-grid'
import VueParticles from 'vue-particles'
import Print from 'vue-print-nb'
import ElementResizeDetectorMaker from 'element-resize-detector'

/* 导入全局样式 */
import './assets/css/global.css'
import './assets/css/reset.css'
/* 引入iconfont */
import './assets/fonts/iconfont.css'
import './common/js/directives.js'

Vue.prototype.$apiUtil = apiUtil
Vue.prototype.$utils = utils
Vue.prototype.$echarts = require('echarts')
Vue.prototype.$erd = ElementResizeDetectorMaker()
Vue.component('tree-table', TreeTable)
Vue.config.productionTip = false
Vue.use(VueParticles)
Vue.use(Print)

new Vue({
  router,
  store,
  components: {
    App
  },
  render: h => h(App)
}).$mount('#app')
